<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/jquery.js"></script>
</head>
<body>
<img src="Zombie3.gif" style="margin-left:600px" id="zombie" hp="10"/>
<script type="text/javascript">
    setInterval('walk()',500);
    function walk(){
        var left=parseInt($("#zombie").css("margin-left"))
        left-=5;
        $("#zombie").css("margin-left",left);

    }
</script>
</body>
</html>